<%--

    Licensed to Jasig under one or more contributor license
    agreements. See the NOTICE file distributed with this work
    for additional information regarding copyright ownership.
    Jasig licenses this file to you under the Apache License,
    Version 2.0 (the "License"); you may not use this file
    except in compliance with the License.  You may obtain a
    copy of the License at the following location:

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:directive.include file="includes/top.jsp" />
  <div class="mylogin" id="login">
	<form:form method="post" id="fm1" cssClass="fm-v clearfix" commandName="${commandName}" htmlEscape="true">
                  	<form:errors path="*" id="msg" cssClass="errors" element="div" />
                    <h2 class="h2title"><spring:message code="screen.welcome.instructions" /></h2>
					<div class="login_item">
						<div class="login_info">
							<c:if test="${not empty sessionScope.openIdLocalId}">
							<strong>${sessionScope.openIdLocalId}</strong>
							<input type="hidden" id="username" name="username" value="${sessionScope.openIdLocalId}" />
							</c:if>
							<c:if test="${empty sessionScope.openIdLocalId}">
							<spring:message code="screen.welcome.label.netid.accesskey" var="userNameAccessKey" />
							<form:input cssClass="required login_name" cssErrorClass="error login_name" id="username" size="35" tabindex="1" path="username" accesskey="${userNameAccessKey}" autocomplete="false" htmlEscape="true" placeholder="请输入您的用户名" maxlength="80"/>
							</c:if>
							<div class="i-name ico"></div>
	                    </div>
                    </div>
                    <div class="login_item">
	                    <div class="login_info">
							<spring:message code="screen.welcome.label.password.accesskey" var="passwordAccessKey" />
							<form:password cssClass="required login_pwd" cssErrorClass="error login_pwd" id="password" size="35" tabindex="2" path="password"  accesskey="${passwordAccessKey}" autocomplete="off" htmlEscape="true" placeholder="请输入您的密码" maxlength="20"/>
							<div class="i-pass ico"></div>
	                    </div>
                    </div>
                    <div class="row btn-row">
						<input type="hidden" name="lt" value="${loginTicket}" />
						<input type="hidden" name="execution" value="${flowExecutionKey}" />
						<input type="hidden" name="_eventId" value="submit" />
                        <input class="btn_login" name="submit" accesskey="l" value="" tabindex="4" type="submit" title="<spring:message code="screen.welcome.security"/>"/>
                    </div>
    </form:form>		
  </div>
<jsp:directive.include file="includes/bottom.jsp" />
